package com.qk.common.enums;

import com.qk.common.constants.AvatarMessageConstants;

public enum AvatarErrorCode {
    OSS_CLIENT_NOT_INITIALIZED(1001, AvatarMessageConstants.OSS_CLIENT_NOT_INITIALIZED),
    FILE_UPLOAD_FAILED(1002, AvatarMessageConstants.FILE_UPLOAD_FAILED),
    FILE_DELETE_FAILED(1003, AvatarMessageConstants.FILE_DELETE_FAILED),
    FILE_NOT_FOUND(1004, AvatarMessageConstants.FILE_NOT_FOUND),
    AVATAR_SAVE_FAILED(1005, AvatarMessageConstants.AVATAR_SAVE_FAILED),
    OSS_CREDENTIALS_NOT_CONFIGURED(1006, AvatarMessageConstants.OSS_CREDENTIALS_NOT_CONFIGURED);

    private final int code;
    private final String message;

    AvatarErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}